import 'package:find_friend/const/const.dart';
import 'package:flutter/material.dart';

class AlertCertifacationWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {

    final size = MediaQuery.of(context).size;
    return Container(
      width: size.width,
      margin: EdgeInsets.symmetric(horizontal: 20.w),
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          Image.asset("assets/renzheng-tc.png", fit: BoxFit.fitWidth, width: double.infinity,),
          Container(
            decoration: BoxDecoration(
              color: Colors.white,
              borderRadius: BorderRadius.vertical(bottom: Radius.circular(10))
            ),
            child: Column(
              mainAxisSize: MainAxisSize.min,
              mainAxisAlignment: MainAxisAlignment.start,
              children: [
                Text("认证学生证", style: instanceTextStyle(17, Colors.black),),
                SizedBox(height: 10,),
                Padding(
                  padding: const EdgeInsets.symmetric(horizontal: 24),
                  child: Text("您好，请先认证学生证，开启更多玩法，而且方便结识更多校友哦～", 
                    style: TextStyle(fontSize: 12, color: APP_font_black, letterSpacing: 5),
                    
                  ),
                ),
                SizedBox(height: 30,),
                InkWell(
                  onTap: (){
                     Navigator.pushNamed(context, "/minecertifacation");
                  },
                  child: Container(
                    alignment: Alignment.center,
                    margin: const EdgeInsets.symmetric(horizontal: 53),
                    padding: const EdgeInsets.symmetric(vertical: 8, horizontal: 30),
                    decoration: BoxDecoration(
                      color: APP_main_color,
                      borderRadius: BorderRadius.circular(20)
                    ),
                    child: Text("马上认证", style: instanceTextStyle(14, Colors.white),),
                  ),
                ),
                SizedBox(height: 45,)
              ],
            ),
          )
        ],
      ),
    );
  }
}